<template>
  <view class="rule">
    <navBar :navbarData.sync="navbarData"></navBar>
    <wxParse v-if="identifier" :identifier.sync="identifier" :preview.sync='preview'></wxParse>
   <view class="dmrule">
    </view>
  </view>
</template>

<script>
  import WxParse from '@/components/wxparse/wxparse';
  import NavBar from '@/components/common/navbar';
  export default {
    components: {
      wxParse: WxParse,
      navBar: NavBar,
    },
    data() {
      return {
        identifier: 'drawRule',
        preview: false,
        navbarData: {
          showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
          hideSearch: true,
          navbarTitle: '活动规则', //导航栏 中间的标题
        },
        nowPages:'',
      }
    },
    onLoad(options){
      if(options.identifier){
        this.identifier = options.identifier || 'drawRule'
      }
      let pages = getCurrentPages();
      var currPage = pages[pages.length - 1];
      this.nowPages = currPage.route;
    },
    onShow() {
     getApp().cl_tracker.track('mini_program_view', {
           path:  this.nowPages,
           pageName: '活动规则',
         })
    },
    methods: {

    }
  }
</script>

<style lang="scss">
  .dmrule{
    height: 100%;
    padding:80rpx 28rpx;
    .text{
      font-size: 26rpx;
      margin-bottom: 20rpx;
      text-align: justify;
      .strong{
        display: inline;
        font-weight: bold;
        text-align: justify;
      }
    }
    .trim{
      font-size: 26rpx;
      margin-bottom: 20rpx;
      margin-left: 24rpx;
      font-weight: bold;
      text-align: justify;
    }
    .trimn{
      font-size: 26rpx;
      margin-bottom: 20rpx;
      margin-left: 24rpx;
      text-align: justify;
    }
  }
</style>
